# -*- coding: utf-8 -*-
# @Time    : 2024/10/6 14:47
# @Author  : 荒
# @FileName: issues.py
# @Software: PyCharm


from django.template import Library
from web import models
from django.urls import reverse

register = Library()

@register.simple_tag
def string_just(num):
    if num < 100:
        num = str(num).rjust(3,'0')

    return "#{}".format(num)